<?php
include("../../classes/register.php");

$reg                = new register;
$reg->username      = $_POST['txtusername'];
$reg->password      = $_POST['txtpassword'];
$reg->retype        = $_POST['txtretype'];
$reg->fname         = $_POST['txtfname'];
$reg->mname         = $_POST['txtmname'];
$reg->lname         = $_POST['txtlname'];
$reg->gender        = $_POST['selgender'];
$reg->bdate         = $_POST['txtbday'];
$reg->contact       = $_POST['txtcontact'];
$reg->email         = $_POST['txtemail'];
$reg->house         = $_POST['txthousenum'];
$reg->brgy          = $_POST['txtbrgy'];
$reg->town          = $_POST['txttown'];
$reg->prov          = $_POST['txtprov'];
$reg->batch         = $_POST['selyear'];

echo $reg->register_alumni();
?>